package com.fgba.express.data.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fgba.express.comm.enums.Sex;
import com.fgba.express.comm.enums.State;
import com.fgba.express.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 快递员表
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_courier")
@ApiModel(value="Courier对象", description="快递员表")
public class Courier extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID（外键）")
    private Integer userId;

    @ApiModelProperty(value = "快递员姓名")
    private String name;

    @ApiModelProperty(value = "身份证号")
    private String idCardNumber;

    @ApiModelProperty(value = "送件数量")
    private Integer sendNumber;

    @ApiModelProperty(value = "状态，0为删除，1为正常，")
    @TableLogic(value = "1",delval = "0")
    private State state;
}
